from PyQt4.QtCore import *
from PyQt4.QtGui import *
# And basic operating system stuff (to quit)
import sys
from mainwindow import MainWindow

if __name__ == '__main__':
    # Create the (single) Qt Application object, which starts everything up
    app = QApplication(sys.argv)
    # Get our main window
    window = MainWindow()
    window.show()
    # Run it
    app.exec_()
    sys.exit()